package com.scanner;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.util.Log;
import android.view.View;

public class DebugView extends View {

	private Paint paint = new Paint();
	private String mMethod = "";

	public DebugView(Context context)
	{
		super(context);
		paint.setStrokeWidth(2);
		paint.setARGB(200, 250,250,250);
		paint.setStyle(Style.FILL); 
		paint.setTextSize(50); 

		setWillNotDraw(false);
	}
	
	 public void UpdateText(String method)
	    {
		 mMethod = method;
	    }
	
	@Override
	public void onDraw(Canvas canvas) {
		Log.d("myDebug","debug view on draw");
		int x = 20;
		int y = 40;
		canvas.drawText(mMethod, x, y, paint);
		Log.d("myDebug","debug view on draw end");
	}

}
